package com.woniuxy.cloud.form;


import feign.Param;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
@ApiModel("注册类")
public class RegisterForm {
   /**
    * 手机号
    * */

   @Pattern(regexp = "^[1][3-9]\\d{9}",message = "手机号格式错误")
   @ApiModelProperty("手机号")
   private String phone;
   /**
    * 用户账号
    * */
   @ApiModelProperty("用户账号")
   @NotBlank(message = "用户名不能为空")
   private String userName;
   /**
    * 用户密码
    * */
   @Pattern(regexp = "^[A-Za-z0-9]{6,16}$", message = "密码长度必须为6到16")
   @ApiModelProperty("用户密码")
   private String passWord;


   /**
    * 注册验证码
    */
   @ApiModelProperty("注册验证码")
   private Integer code;
}
